package com.hzya.frame.system.role.dao.impl;

import com.hzya.frame.system.role.dao.IRoleModuleDao;
import com.hzya.frame.system.role.entity.RoleEntity;
import com.hzya.frame.system.role.entity.RoleModuleEntity;
import com.hzya.frame.utils.core.dao.MybatisGenericDao;
import org.springframework.stereotype.Repository;

/**
 * @description: 角色模块  dao
 * @tableName: system_role_module 
 * @entityName: RoleModuleEntity
 * @author: gjh
 * @history:1.0
 */
@Repository("system_role_moduledao")
public class RoleModuleDaoImpl extends MybatisGenericDao<RoleModuleEntity, Long> implements IRoleModuleDao{
    @Override
    public int deleteByRole(RoleEntity roleEntity) {
        return remove("RoleModuleModel_deleteByRole", roleEntity);
    }
}
